﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MyWcfRestLib
{

    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "Service2" in code, svc and config file together.
    public class CalcService : ICalculator
    {
        public long Add(long x, long y)
        {
            return x + y;
        }

        public long Subtract(long x, long y)
        {
            return x - y;
        }

        public long Multiply(long x, long y)
        {
            return x * y;
        }

        public long Divide(long x, long y)
        {
            return x / y;
        }

        public string SayHello(string name)
        {
            return "Hello " + name;
        }
    }


}
